import { createApp } from "vue";
import "./style.css";
import ElementPlus from "element-plus";
import { ElMessage } from "element-plus";
import App from "./App.vue";

// CSS
import 'element-plus/es/components/message/style/css'
// 
import "vue3-emoji/dist/style.css";

const app = createApp(App);

app.use(ElementPlus)
// 定义一个全局方法
app.config.globalProperties.$message = (message, options) => {
  ElMessage(options ? { ...options, message } : message);
};
app.mount("#app");
